package com.yourcompany.api.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
@EqualsAndHashCode(callSuper = true)
@TableName("orders")
@Schema(description = "订单")
public class Order extends BaseEntity {
    
    @Schema(description = "用户ID")
    private Long userId;
    
    @Schema(description = "订单编号")
    private String orderNo;
    
    @Schema(description = "订单类型：1-普通订单 2-充电订单")
    private Integer orderType;
    
    @Schema(description = "业务ID(充电订单ID)")
    private Long businessId;
    
    @Schema(description = "订单金额")
    private BigDecimal amount;
    
    @Schema(description = "支付方式")
    private String payMethod;
    
    @Schema(description = "支付时间")
    private LocalDateTime payTime;
    
    @Schema(description = "订单状态")
    private Integer status;
    
    @Schema(description = "备注")
    private String remark;
} 